package com.sxt.service;

import com.sxt.common.Result;
import com.sxt.domain.BusCustomer;
import com.sxt.query.BusCustomerQuery;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;


/**
 * @Description: 客户业务接口类
 */
public interface BusCustomerService {

    /**
     * 客户的分页查询
     *
     * @param query
     * @return
     */
    Result queryPage(BusCustomerQuery query);

    /**
     * 新增客户
     *
     * @param busCustomer
     * @return
     */
    Result add(BusCustomer busCustomer);

    /**
     * 修改客户信息
     *
     * @param busCustomer
     * @return
     */
    Result update(BusCustomer busCustomer);

    /**
     * 导出客户信息
     *
     * @param query
     * @param response
     */
    void exportCustomer(BusCustomerQuery query, HttpServletResponse response) throws Exception;

    /**
     * 将Excel中的客户信息批量导入数据库
     *
     * @param file
     * @return
     */
    Result batchAddCustomer(MultipartFile file) throws Exception;
}
